@import "app.component.less";

@cell-title-width: 210pt;


.a-arrow-right {
  background-image: url(@arrow-right-base64);
  background-repeat: no-repeat;
  background-size: 100%;
}

.a-cell-group {
  position: relative;
  .a-arrow-right {
    position: absolute;
    width: 11pt;
    height: 20pt;
    right: 32pt;
    top: 50%;
    transform: translateY(-50%);
  }
  .van-cell {
    padding: 28pt 32pt;
  }
  .van-cell__title {
    width: @cell-title-width !important;
    max-width: @cell-title-width !important;
  }
}

.a-cell-select-group {
  position: relative;
}

.a-cell-select {
  .mt-picker-select__content {
    position: absolute;
    left: @cell-title-width + 32pt;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28pt;
    line-height: 40pt;
    width: 450pt;
  }
}

.a-index-dialog {
  #dialog.init(
    index,
  {}
  );
}

@prefixer a {


  .star-important {
    &::after {
      content: "*";
      color: @text-color-red;
    }
  }

  .star-warning {
    &::after {
      content: "*";
      color: @text-color-orange;
    }
  }

  .m-b-20 {
    margin-bottom: 20pt;
  }

  .m-b-25 {
    margin-bottom: 25pt;
  }

  .m-b-30 {
    margin-bottom: 30pt;
  }

  .gutter {
    height: 20pt;
  }

  .color-gray-300 {
    color: @text-color-gray-300;
  }

  .text-300 {
    #default.font-style(300)
  }

  .text-400 {
    #default.font-style(400)
  }

  .text-500 {
    #default.font-style(500)
  }

  .color-def {
    color: @text-color-default;
  }

  .search-field {
    color: @text-color-gray-300;

    border-radius: 10pt;
    margin-top: 20pt;
    margin-bottom: 20pt;

    &::after {
      content: '';
      clear: both;
    }

    .action {
      padding-left: 30pt;
      background-color: @text-color-gray-150;
      box-sizing: border-box;
      flex: 1;
      position: relative;
    }

    .van-cell {
      background-color: transparent;
      padding: 12pt 0;
      color: @text-color-gray-300;
    }

    image {
      size: 30pt;
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      right: 32pt;
      z-index: 3;
    }
  }

  .search-field-button-cancel {
    width: 82pt;
    text-align: center;
    color: @text-color-gray-800;
    background-color: transparent;
    padding-left: 0;
    padding-right: 0;
    margin-left: 26pt;
    #default.font-style(400);
    height: 60pt;
    line-height: 60pt;
    &::after {
      border: none;
    }
    margin-right: 0;
  }
}



.label() {
  border: 2pt solid transparent;
  border-radius: 4pt;
}

@prefixer u {
  .line1 {
    height: 2pt;
    background-color: #ececec;
    display: block;
  }

  .dash1 {
    height: 0;
    border-bottom: 2pt dashed #dcdcdc;
    display: block;
  }

  .dotted1 {
    height: 0;
    border-bottom: 2pt dotted #dcdcdc;
    display: block;
  }

  .label-red {
    .label();
    border-color: @text-color-red;
    color: @text-color-red;
    text-align: center;
    background-color: rgba($color, 0.1);
  }

  .label-green {
    .label();
    border-color: @text-color-default;
    color: @text-color-default;
    text-align: center;
    background-color: rgba($color, 0.1);
  }

  .text-def {
    color: @text-color-default;
  }

  .text-gray {
    color: @text-color-gray;
  }

  .text-light-dark {
    color: @text-color-light-dark;
  }


  .btn-def {
    .btn();
    color: #ffffff;
    background-color: @text-color-green;
    border-radius: 10pt;

    button[disabled]:not([type])& {
      color:@text-color-gray-300;
      background-color:#ececec;
      box-shadow: none;
    }
  }

  .btn-reject {
    .btn();
    color: @text-color-red;
    background-color: #ffffff;
    border-color: @text-color-gray-600;
    border-radius: 10pt;

    button[disabled]:not([type])& {
      color:@text-color-gray-300;
      background-color:#ececec;
      box-shadow: none;
    }
  }

  .btn-reject-hover {
    background-color: darken(#ffffff, 10%);
  }

  .btn-def-hover {
    background-color: @btn-default-hover-bg;
  }

  .btn-def-sha {
    .btn-def();
    background-color: #21C57C;
    box-shadow: 0 6pt 16pt 0 rgba(@btn-default-bg, 0.3);
  }

  .btn-def-green {
    .btn-def();
    background-color: #21C57C;

    button[disabled]:not([type])& {
      color:rgba(#ffffff, .9);
      background-color:rgba(@text-color-default, .5);
    }
  }

  .btn-def-green-sha {
    .btn-def();
    background-color: #21C57C;
    box-shadow: 0 6pt 16pt 0 rgba(58, 252, 166, 0.44);

    button[disabled]:not([type])& {
      color:rgba(#ffffff, .9);
      background-color:rgba(@text-color-default, .5);
      box-shadow:0 6pt 16pt 0 rgba(58, 252, 166, 0.44);
    }
  }

}

.mt-van-rate {
  .van-rate__item + .van-rate__item {
    margin-left: 30pt;
  }
}

.mt-item {
  height: 80pt;
  border-radius: 40pt;
  #default.border(all);
  padding-left: 65pt;
  padding-right: 65pt;
  #default.font-style(500);
  line-height: 80pt;
  background-color: transparent;
  text-align: left;
  &:active {
    border-color: transparent;
    background-color: @text-color-default;
    color: #ffffff;
  }
  &:after {
    border: none;
  }
}

.van-field-outline {
  .van-cell {
    background-color: transparent;
  }
}

.page {
  .van-cell {
    color: #000000;
  }
  .van-field__input {
    color: #000000;
  }
  .input-placeholder {
    color: @text-color-gray-300;
  }

  .van-tabs__wrap {
    &::after {
      border-width: 0;
    }
  }

  .van-collapse-item {
    &::after {
      border-width: 0;
    }
  }
}

.no-items {
  &__pictue {
    margin-left: auto;
    margin-right: auto;
    margin-top: 225pt;
    width: 308pt;
    height: 292pt;

    image {
      width: 100%;
      height: 292pt;
    }
  }

  &__noplan {
    margin-top: 62pt;
    height: 40pt;
    text-align: center;
    font-size: 28pt;
    color: #838C98;
    line-height: 40pt;
  }
}

.page-none {
  width: 100vw;
  height: 100vh;
  background-color: #ffffff;
  box-sizing: border-box;
}


// each(@components, {
//   @name: replace(@key, "@", "");
//   .@{name} {
//     @value()
//   }
// });

